<div>
    <p style='color:#777'>
        当前目录：http://<?= Configure::read('site_name') ?>/uploads/image/<?= $file['current_dir_path'] ?>
    </p>
    <div class="add" style="margin-top:10px;">
    <?php if(!empty($file['current_dir_path'])): ?>
        <div class="back">
            <span class="glyphicons glyphicons-message-forward"></span>
            <a class='btn btn-default' href="/admin/img_manage?path=<?=$file['moveup_dir_path']?>">返回上级</a>
        </div>
    <?php endif; ?>
    <a class="zAdd" href="/admin/img_add">新增图片</a></div>
</div>
<div class="sub">
	<div class="sub_list">图片/目录</div>
	<div class="sub_url">url</div>
	<div class="sub_time">创建时间</div>
</div>
<div class="content">
<?php foreach ($file['file_list'] as $key => $val): ?>
<div class="content_list">
	<div class="sub_list">
		<?php if($val['is_dir']): ?>
            <a href="/admin/img_manage?path=<?= $val['filename'] ?>"><?= $val['filename'] ?></a>
        <?php else: ?>
            <?php if($val['is_photo']): ?>
                <img src="<?= $file['current_url'].$val['filename']?>" alt="<?=$val['filename']?>">   
            <?php endif; ?>
        <?php endif; ?>
	</div>
	<div class="sub_url">&nbsp;
		<?php if(!$val['is_dir']): ?>
            <a target='blank' href="<?= $file['current_url'].$val['filename']?>">
                <?= $file['current_url'].$val['filename']?>
            </a>
        <?php endif; ?>
	</div>
	<div class="sub_time"><?= $val['datetime'] ?></div>
</div>
<?php endforeach;?>
</div>